package fun.eliauk.treedemo.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import fun.eliauk.treedemo.entity.User;
import fun.eliauk.treedemo.mapper.UserMapper;
import fun.eliauk.treedemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/treeDemo/user")
public class UserController {

    @Autowired
    private UserService userService;

    @Autowired
    private UserMapper userMapper;

    @GetMapping("")
    public List<User> test(){
        List<User> users = userMapper.likeByPhone("18810", "qqzj231231231231");
        return users;
    }
}
